<?php include COMMON_PATH.'/index/header.html' ?>
<style>
    .icon-view-5{
        margin-right: 6px;
    }
    .icon-view-4{
        height: 20px;
        overflow: hidden;
        font-size: 12px;
    }
    .icon-view-4 i{
        padding: 0 4px;
        line-height: 20px;
    }
    .icon-view-4 b{
        padding: 0 4px;
        line-height: 20px;
    }

</style>
<div class="home-bot-wrap main-content cl-live-wrap clearfix">
    <div class="left-box">
        <!--回放-->
        <h1><span>往期发布</span></h1>
        <hr>
        <ul class="live-list-wrap clearfix">
            <?php foreach($issue['lists'] as $v):?>
            <li class="fl" data-llid="<?=$v['llid']?>" data-pw="<?=$v['password']?>"  data-href="/Course/back?llid=<?=$v['llid']?>">
                <a href="javascript:void(0);">
                    <div class="pic-wrap">
                        <img src="<?=$v['avatar']?>" onerror = "iService.imgNoFind(this)">
                        <p class="bot-description">
                            <span class="fl"><?=$v['start_time']?>-<?=$v['end_time']?></span>
                            <span class="fr"><?=$v['date']?></span>
                        </p>
                        <div class="opacity-wrap">
                            <i class="icon-play"></i>
                        </div>
                    </div>
                </a>
                <div class="font-wrap">
                    <p><?=$v['name']?></p>
                    <p class="clearfix">
                        讲师：<?=$v['nickname']?>
                        <span class="fr thumbs-num"><i class="am-icon-user"></i>&nbsp;<?=$v['viewing']?></span>
                    </p>
                    <p class="clearfix" style="margin-top: 8px;">
                        <span class="icon-view-3 icon-view-4">
                            <b>好评</b><i>100%</i>
                        </span>

                        <span class="fl icon-view-5" style="padding: 0 2px;">考试</span>
                        <i class="fr icon iconfont icon-binkaobei" data-llid="<?=$v['llid']?>"></i>
                    </p>
                </div>
            </li>
            <?php endforeach;?>
        </ul>
        <div data-page-total="<?=$issue['count']?>" data-page-per="<?=PAGE_NUMBER?>"  id="live-page-wrap"></div>
    </div>
</div>

<?php include COMMON_PATH.'/index/footer.html' ?>

<script>
    navActive(5);
    $(function(){
        layui.use(['element','layer','form', 'laypage', 'laydate'], function(){
            var layer = layui.layer //获得layer模块
                    ,laypage = layui.laypage //获得laypage模块
                    ,laydate = layui.laydate //获得laydate模块
                    ,form = layui.form //获得laydate模块
                    ,element = layui.element;


            var $btn_del = $('.icon-binkaobei');
            $btn_del.on('click', function () {
                var el_li = $(this).parents('li');
                var llid = $(this).attr('data-llid');

                layer.open({
                    type: 1,
                    title: false,
                    resize: false,
                    shadeClose:false,
                    closeBtn:false,
                    content:'<div class="confirm-wrap" style="padding: 20px 30px">' +
                    '<p style="margin:4px 0 20px 0; text-align: center; ">确定删除此条回放？</p>' +
                    '<div style="display: inline-block">'+
                    '<span class="layui-btn layui-btn-normal btn-modify" style="margin-right: 10px;">确定</span>'+
                    '<span class="layui-btn layui-btn-primary" onclick="layer.closeAll();">取消</span>'+
                    '</div></div>',
                    success: function(layero, index){
                        $('.btn-modify').off('click').on('click',function(){
                            var param = {
                                url:'Prior/del',
                                data:{
                                    llid:llid
                                }
                            };
                            function successFun(data){
                                if(data.code==200){
                                    el_li.remove();
                                    layer.closeAll();
                                }else {
                                    layer.msg(data.data.message, {icon: 2,anim: 6,time:2*1000});
                                }
                            }
                            $.JsonRpc(param,successFun);
                        });
                    }
                });
            });
        });
    })
</script>
</html>



















